PostgreSQL: Include files by relative path
2019-09-24
You can include files in psql using the relative path like so:
\ir <filename>
Or, as a longer alternative:
\include_relative <filename>
Note:
When using \ir
from a file that was just included using \ir
, the path will be interpreted relative to the nearest file in the include tree.